//
//  CZStatus.swift
//  01-sinaWeibo-05-09
//
//  Created by mac on 16/5/24.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit
//
//微博模型
class CZStatus: NSObject {
    //微博时间
    var created_at: String?
    
    //微博ID
    var id: Int64 = 0
    
    //微博信息内容
    var text: String?
    
    //微博来源
    var source: String?
    
    //转发数
    var reposts_count: Int = 0
    
    //评论数
    var comments_count: Int = 0
    
    // 表态数
    var attitudes_count: Int = 0
    
    // 微博配图: 数组里面是字典 // Int类型的数组[Int], 字典类型的数组 [String: AnyObject] -> [[String: AnyObject]]
    var pic_urls: [[String: AnyObject]]?

    init(dict:[String: AnyObject])
    {
        
        super.init()
        
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String)
    {}
    
   override var description: String {
    
        get {
        
            let keys = [
                "created_at", "id", "text", "source", "reposts_count", "comments_count", "attitudes_count", "pic_urls"
            ]
            return "\n\t 微博模型:\(dictionaryWithValuesForKeys(keys))"
        }
    }

}
